<h1 style="margin:50px auto;text-align: center;">用户登录</h1>

<form class="form-horizontal" method="post" action="{:url('index/login/login')}">
    {:token()}
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
        <div class="col-sm-2">
            <input type="text" name="usernum" class="form-control" id="inputEmail3" placeholder="username">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Password</label>
        <div class="col-sm-2">
            <input type="password" name="password" class="form-control" id="inputPassword3" placeholder="Password">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">登录</button>
            <a href="{:url('index/login/register')}" class="btn btn-default" style="margin-left:180px;">注册</a>
        </div>
    </div>
</form>